﻿@model IEnumerable<FPP.Models.Party>
@{
    ViewBag.Title = "Index";
}
<div class="span-18">
    <div class="column span-12">
        <h2>
            Parties</h2>
    </div>
    <div class="column span-6 last">
        <h2>
            <a href="@Url.Action("Create")">Create New Party</a></h2>
    </div>
</div>
<div class="span-18 prepend-1">
    <table>
        <tr>
            <th>
                Name
            </th>
            <th>
                Owner
            </th>
        </tr>
        @foreach (FPP.Models.Party item in Model)
        {
            <tr>
                <td>
                    <a href="@Url.Action("Details", new { id = item.Id })">@item.Name</a>
                </td>
                <td>
                    @item.Owner().FirstName
                </td>
            </tr>
        }
    </table>
</div>
